Kanzi  3.9.7
Kanzi Engine API
kanzi::BindingRuntimeHandle Class Reference

Handler for binding runtimes. More...

#include <kanzi/core.ui/binding/binding_runtime_handle.hpp>

Public Member Functions

 BindingRuntimeHandle ()=default
 Default constructor. More...
 
 BindingRuntimeHandle (AbstractBindingRuntimeSharedPtr binding)
 Constructor. More...
 
AbstractBindingRuntimeSharedPtr getBinding () const
 Gets the shared pointer of a runtime binding. More...
 
 operator bool () const
 Returns whether the binding runtime is still valid. More...
 
AbstractBindingRuntimeoperator-> () const
 Accesses binding runtime functions. More...
 
void reset ()
 Resets the binding runtime. More...
 
long use_count () const
 

Protected Attributes

AbstractBindingRuntimeWeakPtr m_binding
 Weak reference to the binding runtime. More...
 

Detailed Description

Handler for binding runtimes.

This handler contains a weak pointer m_binding that does not take an ownership of the binding runtime or prevent the destruction of the binding.

See also
BindingHostConceptImpl
Since
Kanzi 3.9.7

Constructor & Destructor Documentation

kanzi::BindingRuntimeHandle::BindingRuntimeHandle ( )
explicitdefault

Default constructor.

kanzi::BindingRuntimeHandle::BindingRuntimeHandle ( AbstractBindingRuntimeSharedPtr  binding)
inlineexplicit

Constructor.

Parameters
bindingThe created binding runtime.

Member Function Documentation

AbstractBindingRuntime* kanzi::BindingRuntimeHandle::operator-> ( ) const
inline

Accesses binding runtime functions.

Returns
Pointer to binding runtime.
kanzi::BindingRuntimeHandle::operator bool ( ) const
inline

Returns whether the binding runtime is still valid.

Returns
Whether the binding runtime is still valid.
AbstractBindingRuntimeSharedPtr kanzi::BindingRuntimeHandle::getBinding ( ) const
inline

Gets the shared pointer of a runtime binding.

Returns
Shared pointer from the weak pointer.
void kanzi::BindingRuntimeHandle::reset ( )
inline

Resets the binding runtime.

long kanzi::BindingRuntimeHandle::use_count ( ) const
inline
Returns
Number of shared pointers pointing to binding.

Member Data Documentation

AbstractBindingRuntimeWeakPtr kanzi::BindingRuntimeHandle::m_binding
protected

Weak reference to the binding runtime.


The documentation for this class was generated from the following file: